package hspedu.learn.javabase.extendsImporve;

public class Extestt {
    private int age = 23;

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
class Test1 extends Extestt{
    private String name;
    private int age = 32;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
class Ts{
    public static void main(String[] args) {
        Test1 test1 = new Test1();
//        test1.age ="1";
//        test1.setAge(22);
        System.out.println(test1.getAge());
    }
}
